<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>information update</title>
<style>
#header {
	background-color:black;
	color:white;
	text-align:center;
    padding:20px;}
#navf {
	background-color:#eeeeee;
	height:300px;
	width:380px;
	float:left;
	text-align:center;
	padding:5px;
}

#section {
	float:left;
	height:300px;
	width:400px;
	text-align:right;
	padding:5px;
}
#navs {
	background-color:#eeeeee;
	height:300px;
	width:380px;
	float:right;
	text-align:center;
	padding:5px;
}
#foot {
	background-color:black;
	color:white;
	text-align:center;
    padding:20px;
	clear:both;
}
</style>  
</head>
<?php
header('Content-type:text/html;charset=utf-8');
session_start();
$name = $_SESSION['usn'];
$tph = $_SESSION['tph'];
$age = $_SESSION['age'];?>
<body>
<div id="header">
<h1>编辑信息</h1></div>
<div id="navf"></div>
<div id="section">
    <p>
	<form action="infoupdateadd.php" method="post" enctype="multipart/form-data">
	用户名：<input type="text" name="username"  value="<?php echo $name;?>" >
	<br>
	<b style="color:red">*(必填)</b>旧密码：<input type="password" name="oldpassword" >
	<br>
	<b style="color:red">(不填视为不更改)</b>新密码：<input type="password" name="password">
	<br>
	再次输入密码：<input type="password" name="repassword">
	<br>
	手机号：<input type="tel" name="telephone" value="<?php echo $tph;?>" >
	<br>
	年龄：<input type="number" name="age" value="<?php echo $age;?>" >
	<br>
	个人头像：<input type="file" name="photo" onchange="imgPreview(this)">
	<br>
	<input type="submit" name="finish" value="完成编辑">
	</form>
	</p>
</div>
<div id="navs"></div>
<div id="foot">
    <h2><a href="./info.php">返回个人信息</a></h2>
</div>
</body>
</html>